package com.example.imtoken.room.dao

import androidx.room.*
import com.example.imtoken.room.schema.AppLoginSchema

@Dao
interface AppLoginDao {

    @Insert
    fun insertAppLogin(appLoginSchema: AppLoginSchema): Long

    @Update
    fun updateAppLogin(appLoginSchema: AppLoginSchema): Int

    @Query("SELECT * FROM app_login")
    fun getAppLogin(): AppLoginSchema

    @Query("DELETE FROM app_login")
    fun delete(): Int
}